<div *ngIf="hero">
  <h2>{{hero.id}}. {{hero.brand}}</h2>

  <div class = "items">
    <label>车的品牌名:</label>
    <input [(ngModel)]="hero.brand" placeholder="车名" />
  </div>

  <div class = "item">
    <label>颜色</label>
    <input [(ngModel)]="hero.color" placeholder="颜色" />
  </div>

  <div class = "item">
    <label>座位数</label>
    <input [(ngModel)]="hero.seats" placeholder="座位数" />
  </div>

  <div class = "item">
    <label>价格</label>
    <input [(ngModel)]="hero.price" placeholder="价格" />
  </div>

  <div class = "items">
    <label>描述:</label>
    <input [(ngModel)]="hero.desc" placeholder="Description" />
  </div>

  <div class = "items">
      <label>图片:</label>
      <input [(ngModel)]="hero.pic" placeholder="picturestr" />
    </div>

  <button (click)="save()">保存</button>
  <button (click)="goBack()">返回</button>
  
</div>
